<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<html>
<head>
    <title>计划列表</title>
    <%@include file="/jsp/public/header.jsp" %>
</head>
<body>

<div id="Title_bar">
    <div id="Title_bar_Head">
        <div id="Title_Head"></div>
        <div id="Title"><!--页面标题-->
            <img border="0" width="13" height="13"
                 src="${pageContext.request.contextPath}/style/images/title_arrow.gif"/> 工作计划管理
        </div>
        <div id="Title_End"></div>
    </div>
</div>

<div id="MainArea">
    <table cellspacing="0" cellpadding="0" class="TableStyle">

        <!-- 表头-->
        <thead>
        <tr align=center valign=middle id=TableTitle>
            <td width="100">计划标题</td>
            <td width="100">简要</td>
            <td width="200">开始时间</td>
            <td width="200">结束时间</td>
            <td>计划状态</td>
            <td>相关操作</td>
        </tr>
        </thead>

        <!--显示数据列表-->
        <tbody id="TableData" class="dataContainer" datakey="workPlanList">
        <c:forEach items="${workPlanList}" var="u">
            <tr class="TableDetail1 template">
                <td>${u.planName}&nbsp;</td>
                <td>${u.description}&nbsp;</td>
                <td><fmt:formatDate value="${u.startTime}" pattern="yyyy-MM-dd HH:mm:SS"/></td>
                <td><fmt:formatDate value="${u.endTime}" pattern="yyyy-MM-dd HH:mm:SS"/></td>
                <td>
                    <c:if test="${u.status==0}">
                        未完成
                    </c:if>
                    <c:if test="${u.status==1}">
                        已完成
                    </c:if>
                    <c:if test="${u.status==2}">
                        进行中
                    </c:if>
                </td>
                <td>

                    <a onclick="return window.confirm('确定删除当前计划吗？')" href="delete.do?planId=${u.planId}" namespace="/">
                        <button value="删除">删除</button>
                    </a>

                    <a href="editUI.do?planId=${u.planId}">
                         <button value="计划详情">计划详情</button>
                    </a>

                    <a href="completed.do?planId=${u.planId}" onclick="return window.confirm('您确定已完成当前计划吗？')">
                        <button value="已完成计划">已完成计划</button>
                    </a>

                </td>
            </tr>
        </c:forEach>
        </tbody>
    </table>

    <!-- 其他功能超链接 -->
    <div id="TableTail">

            <div id="TableTail_inside">
                <a href="addUI.do"><img src="${pageContext.request.contextPath}/style/images/createNew.png"/></a>
            </div>
    </div>
    <!--分页信息-->
    <%@include file="/jsp/public/pageView.jsp" %>
</div>

</body>
</html>


